package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng
 * @since 2018-08-22
 */
@TableName("sys_car_record")
public class CarRecord extends Model<CarRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 姓名
     */
    private String people;
    /**
     * 联系方式
     */
    private String tel;
    /**
     * 车牌
     */
    private String plate;
    /**
     * 单位
     */
    private String unit;
    /**
     * 登记时间
     */
    @TableField("registration_time")
    private Date registrationTime;
    /**
     * 结束时间
     */
    @TableField("over_time")
    private Date overTime;
    /**
     * 是否外来
     */
    private String instructions;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPeople() {
        return people;
    }

    public void setPeople(String people) {
        this.people = people;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getPlate() {
        return plate;
    }

    public void setPlate(String plate) {
        this.plate = plate;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Date getRegistrationTime() {
        return registrationTime;
    }

    public void setRegistrationTime(Date registrationTime) {
        this.registrationTime = registrationTime;
    }

    public Date getOverTime() {
        return overTime;
    }

    public void setOverTime(Date overTime) {
        this.overTime = overTime;
    }

    public String getInstructions() {
        return instructions;
    }

    public void setInstructions(String instructions) {
        this.instructions = instructions;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CarRecord{" +
        "id=" + id +
        ", people=" + people +
        ", tel=" + tel +
        ", plate=" + plate +
        ", unit=" + unit +
        ", registrationTime=" + registrationTime +
        ", overTime=" + overTime +
        ", instructions=" + instructions +
        "}";
    }
}
